package com.hymjweb.demo.hymj.finance_manage.reconciliation.controller;

import com.hymjweb.demo.framework.sys.BaseController;
import com.hymjweb.demo.hymj.finance_manage.reconciliation.service.CwReconciliationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/pages/finance_manage/reconciliation")
public class CwReconciliationController extends BaseController {

    @Autowired
    private CwReconciliationService cwReconciliationService;


    @RequestMapping("/showPickUpNativeBillReconciliation")
    public String showPickUpNativeBillReconciliation(){
        return "/pages/finance_manage/reconciliation/pickUpReconciliation";
    }

    @RequestMapping("/showAirMasterBillReconciliation")
    public String showAirMasterBillReconciliation(){
        return "/pages/finance_manage/reconciliation/airMasterBillReconciliation";
    }

    @RequestMapping("/showAutoMasterBillReconciliation")
    public String showAutoMasterBillReconciliation(){
        return "/pages/finance_manage/reconciliation/autoMasterBillReconciliation";
    }

    @RequestMapping("/billReconciliation")
    public String billReconciliation(){
        return "/pages/finance_manage/reconciliation/billReconciliation";
    }

    @RequestMapping("/queryPickUpNatvieBillReconciliationList")
    @ResponseBody
    public Object queryPickUpNatvieBillReconciliationList(@RequestParam(required = false) Map param){
        return cwReconciliationService.getPickUpNatvieBillReconciliationList(param);
    }

    @RequestMapping("/queryFlightMasterBillReconciliationList")
    @ResponseBody
    public Object queryFlightMasterBillReconciliationList(@RequestParam(required = false) Map param){
        return cwReconciliationService.getFlightMasterBillReconciliationList(param);
    }

    @RequestMapping("/queryAutoMasterBillReconciliationList")
    @ResponseBody
    public Object queryAutoMasterBillReconciliationList(@RequestParam(required = false) Map param) throws Exception{
        return cwReconciliationService.getAutoMasterBillReconciliationList(param);
    }




}
